const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 设置token快捷访问
  name: state => state.user.userinfo.username, // 建立用户名称的映射
  userId: state => state.user.userinfo.userId, // 建立用户id的映射
  staffPhoto: state => state.user.userinfo.staffPhoto, // 建立头像的映射
  companyId: state => state.user.userinfo.companyId, // 建立对月user模块的companyId的快捷访问
  routes: state => state.permission.routes, // 导出当前的路由
  userInfo: state => state.user.userinfo // 建立用户信息的访问

}
export default getters
